package com.boyue.dao;

import com.boyue.entity.AddressList;
import com.boyue.utils.PageInfo;

import java.sql.SQLException;
import java.util.List;

/**
 * @auth wzy
 * @date 2023/9/1 14:47
 */
public interface AddressListDao {
    List<AddressList> list() throws SQLException;

    /**
     *
     * @param pageInfo
     * @return
     * @throws SQLException
     */
    PageInfo<AddressList> listPage(PageInfo pageInfo,AddressList addressList) throws SQLException;

    AddressList getById(Integer id) throws SQLException;

    Integer add(AddressList addressList) throws SQLException;

    Integer delete(Integer addId) throws SQLException;
}
